package com.ewanghuiju.app.model.bean.response;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

/**
 * @author sj  qq:751943509
 * @class 拼团返回结果  和 热门团购
 * @time 2020/2/20
 */
public class PintuanShopListResponBean implements Serializable, MultiItemEntity {
    /**
     * "data": {
     * "id": 122,
     * "cate_id": 68,
     * "goods_no": "YC553620200331173346",
     * "goods_name": "保湿深层清洁补水控油收缩毛孔通透清浊净颜男女士黑面膜",
     * "goods_desc": "1111",
     * "image": "http://ewhjx.oss-cn-beijing.aliyuncs.com/upload/202003311733249XLZ.jpg",
     * "multi_image": "http://ewhjx.oss-cn-beijing.aliyuncs.com/upload/20200331173327OFOL.jpg,http://ewhjx.oss-cn-beijing.aliyuncs.com/upload/20200331173331W7GX.jpg",
     * "spe_price": "40.00",
     * "yuan_price": "50.00",
     * "unit": "",
     * "weight": "10.000",
     * "total": 10000,
     * "people_number": 2,
     * "cycle_time": 2020,
     * "info": "<p><img src=\"http://ewhjx.oss-cn-beijing.aliyuncs.com/upload/20200331174709XJEA.jpg\" style=\"max-width:100%;\"><br></p>",
     * "is_free": 0,
     * "Postage": "0.00",
     * "status": 1,
     * "is_specs": 0,
     * "shuidi_give": 10,
     * "balance_giving": 20,
     * "red_bean_giving": 3,
     * "sum_balance_giving": 2,
     * "list_order": 0,
     * "create_time": "1970-01-01 08:32:50",
     * "update_time": null,
     * "sales": 0,
     * "off_group_sum": 0,
     * "delete_time": 0,
     * "user_image_b": null,
     * "user_image_a": null,
     * "user_image_c": null,
     * "evaluation": []
     * }
     */

    public static final int RESULT_TYPE_SHOP = 0;//商品列表
    public static final int RESULT_TYPE_TUAN = 1;//正在开的团

    private int itemType;

    private int id;

    public int delete_time;
    public String goods_no;
    public String image;
    public String multi_image;
    public int people_number;
    //    public int sales;
    public int total;
    public String Postage;
    public int list_order;
    public List<String> info;
    public String spe_price;
    public String goods_name;
    //销量
    public int off_group_sum;
    public String create_time;
    public String weight;
    public String goods_desc;
    public String yuan_price;
    public int is_specs;
    public String unit;
    public int is_free;
    public int cycle_time;
    public String shuidi_give;
    private List<PingjiaListResponBean> evaluation;
    //0:商品，1拼团号
    private int code_type;
    //商品信息或者拼团信息
    private List<PintuanShopListResponBean> list;
    //还剩 %@人成团
    public String residue_user;
    //剩余时间
    public long end_time;
    //拼团号
    public String group_no;
    //商品id
    public int goods_id;
    //团号
    public String group_id;
    //团价格
    public String group_price;
    //团长头像
    public String head_image;
    //昵称
    public String nickname;
    //0  为参团 1 已参团
    public int user_yes;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getDelete_time() {
        return delete_time;
    }

    public void setDelete_time(int delete_time) {
        this.delete_time = delete_time;
    }

    public String getGoods_no() {
        return goods_no;
    }

    public void setGoods_no(String goods_no) {
        this.goods_no = goods_no;
    }

    public String getMulti_image() {
        return multi_image;
    }

    public void setMulti_image(String multi_image) {
        this.multi_image = multi_image;
    }

    public int getPeople_number() {
        return people_number;
    }

    public void setPeople_number(int people_number) {
        this.people_number = people_number;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getPostage() {
        return Postage;
    }

    public void setPostage(String postage) {
        Postage = postage;
    }

    public int getList_order() {
        return list_order;
    }

    public void setList_order(int list_order) {
        this.list_order = list_order;
    }

    public List<String> getInfo() {
        return info;
    }

    public void setInfo(List<String> info) {
        this.info = info;
    }

    public String getSpe_price() {
        return spe_price;
    }

    public void setSpe_price(String spe_price) {
        this.spe_price = spe_price;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public int getOff_group_sum() {
        return off_group_sum;
    }

    public void setOff_group_sum(int off_group_sum) {
        this.off_group_sum = off_group_sum;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getGoods_desc() {
        return goods_desc;
    }

    public void setGoods_desc(String goods_desc) {
        this.goods_desc = goods_desc;
    }

    public String getYuan_price() {
        return yuan_price;
    }

    public void setYuan_price(String yuan_price) {
        this.yuan_price = yuan_price;
    }

    public int getIs_specs() {
        return is_specs;
    }

    public void setIs_specs(int is_specs) {
        this.is_specs = is_specs;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getIs_free() {
        return is_free;
    }

    public void setIs_free(int is_free) {
        this.is_free = is_free;
    }

    public int getCycle_time() {
        return cycle_time;
    }

    public void setCycle_time(int cycle_time) {
        this.cycle_time = cycle_time;
    }

    public String getShuidi_give() {
        return shuidi_give;
    }

    public void setShuidi_give(String shuidi_give) {
        this.shuidi_give = shuidi_give;
    }

    public List<PingjiaListResponBean> getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(List<PingjiaListResponBean> evaluation) {
        this.evaluation = evaluation;
    }

    public int getCode_type() {
        return code_type;
    }

    public void setCode_type(int code_type) {
        this.code_type = code_type;
    }

    public static int getResultTypeShop() {
        return RESULT_TYPE_SHOP;
    }

    public static int getResultTypeTuan() {
        return RESULT_TYPE_TUAN;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public List<PintuanShopListResponBean> getList() {
        return list;
    }

    public void setList(List<PintuanShopListResponBean> list) {
        this.list = list;
    }

    public String getResidue_user() {
        return residue_user;
    }

    public void setResidue_user(String residue_user) {
        this.residue_user = residue_user;
    }

    public long getEnd_time() {
        return end_time;
    }

    public void setEnd_time(long end_time) {
        this.end_time = end_time;
    }

    public String getGroup_no() {
        return group_no;
    }

    public void setGroup_no(String group_no) {
        this.group_no = group_no;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getGroup_price() {
        return group_price;
    }

    public void setGroup_price(String group_price) {
        this.group_price = group_price;
    }

    public String getHead_image() {
        return head_image;
    }

    public void setHead_image(String head_image) {
        this.head_image = head_image;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getUser_yes() {
        return user_yes;
    }

    public void setUser_yes(int user_yes) {
        this.user_yes = user_yes;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

}
